<div class="order-list-page" ng-if="pagedata.op == 'list'">
    <div class="fui-header">
		<div class="fui-header-left" ng-click="goback()">
            <a class="back"></a>
        </div>
		<div class="title">我的客户</div>
		<div class="fui-header-right"></div>
	</div>
	<div style="margin-top:58px"></div>
	<div class='fui-content'>
	<div style="padding:0 0.5rem">
	<div class="fui-cell-group radius" ng-repeat="item in pagedata.list">
			<div class="fui-cell">
						<div class="fui-cell-label" style="width:3.5rem" href="javascript:;" ng-click="access_json('jy_ailiao/memberitem//mid='+item.mid)">
							<img class="round" style="width:3rem;height:3rem;border-radius:3rem" ng-src="{{tomedia(item.avatar) || '../addons/jy_ailiao/resource/images/nologo.png'}}">
						</div>
						<div class="fui-cell-text" style="margin-top:0.16rem">
							<div class="title" style="font-size:0.76rem">
								<span class="bold" style="font-size:0.8rem;width:auto;margin-right:0.2rem">{{item.nickname || 0}}</span>
								<i ng-if="item.sex==2" class="icon icon-nv red"></i>
								<i ng-if="item.sex==1" class="icon icon-nan" style="color:#18bc9c"></i>
							</div>
							<div class="subtitle" style="font-size:0.65rem">
								{{item.city}} <span class="bold" style="color:#18bc9c">·</span> {{item.age || '**'}}岁 <span class="bold" style="color:#18bc9c">·</span> {{item.zhiwei || '**'}} <span class="bold" style="color:#18bc9c">·</span> {{item.height || '**'}}
							</div>
							<div class="subtitle" style="font-size:0.65rem">
								{{item.realname || '无真实姓名'}}
								<a href="tel:{{item.mobile}}" style="color:#18bc9c">{{item.mobile || '无电话'}}</a>
							</div>
						</div>
						<div class="fui-cellone-remark noremark">
							<span class="jylabel jylabel-success" href="javascript:" ng-click="pagedata.post.id=item.id;pagedata.changeshow=true" style="padding:0.3rem 0.6rem;border-radius:1rem;font-weight:400">转客户</span>
						</div>
			</div>
        </div>
	</div>
	</div>
	<div class="content-empty" ng-show="pagedata.list.length == 0 ">
		  <i class="icon jinyunicon icon-cry" style="width: 6rem;margin-bottom: 0.5rem;"></i><br/><p style="color: #999;font-size: .75rem">您暂时没有绑定任何客户！</p>
	</div>
</div>
<div ng-include="sys_html('worker/_footer')"></div>
<div ng-if="pagedata.changeshow" class="popup">
	<div class="popup-body">
		<div class="popup-bottom">
			<i class="closed icon icon-cuowu" ng-click="pagedata.changeshow=false"></i>
			<div class='fui-content' style="padding:0.5rem">
				<div class="tips tips-yellow">
						<i class="fa fa-bullhorn alert-link"></i> 当前正在进行转客户操作！
				</div>
				<div ng-if="pagedata.pluginset.is_zhuan==1" class="weui_cell weui_cell_switch">
					<div class="weui_cell_hd">需要指定红娘？</div>
					<div class="weui_cell_bd weui_cell_primary">
						<input class="weui_switch" type="checkbox" ng-checked="pagedata.post.need_setpeisong==1" ng-click="toogle(pagedata.post,'need_setpeisong',[1,0])">
					</div>
				</div>
				<div class="weui_cell weui_cell_select ng-scope" ng-if="pagedata.post.need_setpeisong==1 && pagedata.pluginset.is_zhuan==1">
						<div class="weui_cell_hd">
							指定红娘
						</div>
						<div class="weui_cell_bd weui_cell_primary">
							<select class="weui_select" ng-model="pagedata.post.worker_id">
								<option ng-repeat="op in pagedata.workers" ng-selected="pagedata.post.worker_id==op.id" value="{{op.id}}" class="ng-binding ng-scope">{{op.title}}</option>
							</select>
						</div>
				</div>
				<div ng-if="pagedata.pluginset.is_zhuan!=1" class="weui_cell weui_cell_switch">
					<div class="weui_cell_hd">确定要转客户？转客户后该客户的所有任务将重新进入无人服务模式！</div>
				</div>
				<div class="weui_btn_area">
				 <a class="weui_btn weui_btn_primary" href="javascript:" id="showTooltips" ng-click="post(pagedata.post,'/worker.user/change/');pagedata.changeshow=false">提交</a>
				 </div>
			</div>
		</div>
	</div>
</div>
<script>
scope.tool.get_list('jy_ailiao/worker.user/list/',true);
scope.pagedata.scroll_bottom=function(){
	scope.tool.get_list('jy_ailiao/worker.user/list/');
}
</script>